package com.ld.control.business.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ld.control.business.customer.model.CustomerModel;
import com.ld.control.business.customer.vo.req.CustomerReqVo;
import com.ld.control.business.customer.vo.reqsp.CustomerRespVo;
import com.ld.control.common.vo.GeneratePageListVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangfeng
 * @since 2024-05-06
 */
public interface CustomerService extends IService<CustomerModel> {

    /**
     * 添加
     * @param reqVo
     */
    void add(CustomerReqVo reqVo);

    /**
     * 修改
     * @param reqVo
     */
    void update(CustomerReqVo reqVo);

    /**
     * 获取详情
     * @param id
     */
    CustomerRespVo getById(Long id);

    /**
     * 删除
     * @param id
     */
    void deleteById(Long id);

    /**
     * 获取分页列表
     * @param name
     * @param companyName
     * @param current
     * @param size
     */
    GeneratePageListVo<CustomerRespVo> getPageList(String name, String companyName, Integer current, Integer size);

}
